<template>
  <div id="app">
    <!-- <img src="./assets/logo.png"> -->
    
    <el-menu
  :default-active="1"
  class="el-menu-demo"
  mode="horizontal"
  @select="handleSelect"
  background-color="#545c64"
  text-color="#fff"
  router="true"
  active-text-color="#ffd04b" >
 
  <el-menu-item index="game" >游戏中心</el-menu-item>
   <el-menu-item index="2">视频中心</el-menu-item>
    <el-menu-item index="3">3中心</el-menu-item>
     <el-menu-item index="4">4中心</el-menu-item>
    </el-menu>
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
   data(){
        return{
   
        }
    },
    methods:{
       handleSelect(){
      // this.$router.go(1);
    }
    }
}
</script>
  
<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
